<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="sys" uri="/menutaglib"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>${sessionScope.web_name}</title>
		<meta content="width=device-width, initial-scale=1.0" name="viewport" />
		<link rel="stylesheet" id='style_color' href="<%=request.getContextPath()%>/resources/assets/plugins/system/css/${sessionScope.web_style}.css" type="text/css"/>
		<script type="text/javascript" src="<%=request.getContextPath()%>/resources/assets/common/js/constants.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/resources/assets/system/js/common/fscapp_sys.js"></script>
	</head>
    <body>
        <!-- BEGIN HEADER -->
        <jsp:include page="../common/systemUserSelfHeader.jsp"></jsp:include>
        <!-- END HEADER -->
		<div class="page-container row-fluid">
			<!-- BEGIN HORIZONTAL MENU PAGE SIDEBAR1 -->
			<div class="page-sidebar nav-collapse collapse">
				<!-- BEGIN SIDEBAR MENU -->
				<ul class="page-sidebar-menu">
					<sys:sysNav ctgLevelOne="sysOperate" ctgLevelTwo="log4j"/>
				</ul>
				<!-- END SIDEBAR MENU -->
			</div>
			<div class="page-content">
				<div class="container-fluid">
					<!-- BEGIN PAGE HEADER-->
					<div class="row-fluid crumbs">
						<div class="beginPageHearderBg_1"></div>
						<div class="beginPageHearderBg_2"></div>
						<div class="page-title page-title-style"><i class="icon-legal"></i>log4j日志</div>
						<div class="page-title-desc"><i class="fa fa-info-circle"></i>查看log4j日志信息(*)</div>
						<div class="span12 breadcrumb-style">
							<ul class="breadcrumb">
								<li>
									<i class="icon-home"></i>
									<a href="${sessionScope.web_home}">首页</a>
									<i class="icon-angle-right"></i>
								</li>
								<li>
									<a href="#">运营</a>
									<i class="icon-angle-right"></i>
								</li>
								<li><a href="#">log4j日志</a></li>
							</ul>
							<!-- END PAGE TITLE & BREADCRUMB-->
						</div>
					</div>
					<div class="row-fluid">
						<div class="span12">
							<div class="portlet box yellow">
								<div class="portlet-title">
									<div class="caption"><i class="icon-bug"></i>系统操作日志数据表</div>
								</div>
								<div class="portlet-body">
									<table id="projectDataTable" class="table table-striped table-bordered table-hover table-full-width" >
										<thead>
										<tr>
											<th >序号</th>
											<th >日志文件</th>
											<th >文件大小(B)</th>
											<th >最后修改时间</th>
											<th >文件下载</th>
										</tr>
										</thead>
										<tbody >
										<c:forEach items="${log4js}" var="log4j" varStatus="status">
											<tr>
												<td>${status.index+1}</td>
												<td>${log4j.name}</td>
												<td>${log4j.size}</td>
												<td>${log4j.date}</td>
												<td><a href="../resources/download?fileName=${log4j.path}" ><button class="btn btn-download btn-outline m-wrap"><i class="icon-cloud-download"></i></button></a></td>
											</tr>
										</c:forEach>
										</tbody>
									</table>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
        <!-- END CONTAINER -->
        <!-- BEGIN FOOTER -->
        <jsp:include page="../common/sysFooter.jsp"></jsp:include>
        <script>
			jQuery(document).ready(function() {    
			   App.init();
			   TableAdvanced.init();
			   UIModals.init();
			});
		</script>
        <!-- END FOOTER -->
    </body>
</html>